import appService from '@/utils/appService';
import systemConfig from '@/utils/config';

const baseUrl = `${systemConfig.serverProxy}/trade-payment`;

/**
 * 二维码订单流水-列表查询
 * @returns {Promise<void>}
 */
export const queryQrFlowList = async payload => {
  const res = await appService.getRequest(`${baseUrl}/admin/qrFlow/findPageList`, payload);
  return res;
};

/**
 * 二维码订单流水-查询条件枚举查询
 * @returns {Promise<void>}
 */
export const getQrFlowQueryEnum = async payload => {
  const res = await appService.getRequest(`${baseUrl}/admin/qrFlow/getQueryEnum`, payload);
  return res;
};

/**
 * 二维码订单流水-详情
 * @returns {Promise<void>}
 */
export const queryQrFlowDetail = async flowId => {
  const res = await appService.getRequest(`${baseUrl}/admin/qrFlow/detail/${flowId}`);
  return res;
};
